<!-- saved from url=(0014)about:internet -->
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>RTW Report - ode78__mex.c</title>
<script language="JavaScript" type="text/javascript" src="rtwreport_utils.js"></script>
</head>
<body bgcolor="#eeeeee" text="#1122aa" onload="try {if (top) { if (top.rtwFileOnLoad) top.rtwFileOnLoad(window.document); else local_onload();}} catch(err) {};">
<p>
<table border="0" cellspacing="0" cellpadding="6" width="100%%" height="100%%"><tr><td width="100%%" valign="top" bgcolor="#ffffff">
<h4>File: <a href="../ode78__mex.c" target="rtwreport_document_frame" id="linkToText_plain">ode78__mex.c</a></h4>
<pre id="RTWcode">
<a name="1"><font color="#888888 "><i>    1   </i></font></a><font color="#117755"><i>/*</i></font>
<a name="2"><font color="#888888 "><i>    2   </i></font></a><font color="#117755"><I> * ode78__mex.c</i></font>
<a name="3"><font color="#888888 "><i>    3   </i></font></a><font color="#117755"><I> *</i></font>
<a name="4"><font color="#888888 "><i>    4   </i></font></a><font color="#117755"><I> * Code generation for function 'ode78_'</i></font>
<a name="5"><font color="#888888 "><i>    5   </i></font></a><font color="#117755"><I> *</i></font>
<a name="6"><font color="#888888 "><i>    6   </i></font></a><font color="#117755"><I> * C source code generated on: Mon Jun 22 23:07:02 2015</i></font>
<a name="7"><font color="#888888 "><i>    7   </i></font></a><font color="#117755"><I> *</i></font>
<a name="8"><font color="#888888 "><i>    8   </i></font></a><font color="#117755"><I> */</i></font>
<a name="9"><font color="#888888 "><i>    9   </i></font></a>
<a name="10"><font color="#888888 "><i>   10   </i></font></a><font color="#117755"><i>/* Include files */</i></font>
<a name="11"><font color="#888888 "><i>   11   </i></font></a><font color="#992211">#</font><font color="#992211"><b>include</b></font> <font color="#992211">&quot;mex.h&quot;</font>
<a name="12"><font color="#888888 "><i>   12   </i></font></a><font color="#992211">#</font><font color="#992211"><b>include</b></font> <font color="#992211">&quot;ode78__api.h&quot;</font>
<a name="13"><font color="#888888 "><i>   13   </i></font></a><font color="#992211">#</font><font color="#992211"><b>include</b></font> <font color="#992211">&quot;ode78__initialize.h&quot;</font>
<a name="14"><font color="#888888 "><i>   14   </i></font></a><font color="#992211">#</font><font color="#992211"><b>include</b></font> <font color="#992211">&quot;ode78__terminate.h&quot;</font>
<a name="15"><font color="#888888 "><i>   15   </i></font></a>
<a name="16"><font color="#888888 "><i>   16   </i></font></a><font color="#117755"><i>/* Function Declarations */</i></font>
<a name="17"><font color="#888888 "><i>   17   </i></font></a><font color="#112266"><b>static</b></font> <font color="#112266"><b>void</b></font> <a href="#fcn_ode78__mexFunction" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'fcn_ode78__mexFunction');" target="rtwreport_document_frame"><font color="#1122aa">ode78__mexFunction</font></a>(<font color="#112266"><b>int</b></font> nlhs, mxArray *plhs[], <font color="#112266"><b>int</b></font> nrhs, <font color="#112266"><b>const</b></font> mxArray *prhs[]);
<a name="18"><font color="#888888 "><i>   18   </i></font></a>MEXFUNCTION_LINKAGE mxArray *<a href="#fcn_emlrtMexFcnProperties" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'fcn_emlrtMexFcnProperties');" target="rtwreport_document_frame"><font color="#1122aa">emlrtMexFcnProperties</font></a>(<font color="#112266"><b>void</b></font>);
<a name="19"><font color="#888888 "><i>   19   </i></font></a>
<a name="20"><font color="#888888 "><i>   20   </i></font></a><font color="#117755"><i>/* Variable Definitions */</i></font>
<a name="21"><font color="#888888 "><i>   21   </i></font></a>emlrtContext <a name="var_emlrtContextGlobal">emlrtContextGlobal</a> = <b>{</b> true, false, EMLRT_VERSION_INFO, NULL, <font color="#1122ff">&quot;ode78_&quot;</font>, NULL, false, <b>{</b>2045744189U,2170104910U,2743257031U,4284093946U<b>}</b>, NULL <b>}</b>;
<a name="22"><font color="#888888 "><i>   22   </i></font></a>emlrtCTX <a name="var_emlrtRootTLSGlobal">emlrtRootTLSGlobal</a> = NULL;
<a name="23"><font color="#888888 "><i>   23   </i></font></a>
<a name="24"><font color="#888888 "><i>   24   </i></font></a><font color="#117755"><i>/* Function Definitions */</i></font>
<a name="25"><font color="#888888 "><i>   25   </i></font></a><font color="#112266"><b>static</b></font> <font color="#112266"><b>void</b></font> <a name="fcn_ode78__mexFunction">ode78__mexFunction</a>(<font color="#112266"><b>int</b></font> nlhs, mxArray *plhs[], <font color="#112266"><b>int</b></font> nrhs, <font color="#112266"><b>const</b></font> mxArray *prhs[])
<a name="26"><font color="#888888 "><i>   26   </i></font></a><b>{</b>
<a name="27"><font color="#888888 "><i>   27   </i></font></a>  mxArray *outputs[3];
<a name="28"><font color="#888888 "><i>   28   </i></font></a>  mxArray *inputs[3];
<a name="29"><font color="#888888 "><i>   29   </i></font></a>  <font color="#112266"><b>int</b></font> n = 0;
<a name="30"><font color="#888888 "><i>   30   </i></font></a>  <font color="#112266"><b>int</b></font> nOutputs = (nlhs &lt; 1 ? 1 : nlhs);
<a name="31"><font color="#888888 "><i>   31   </i></font></a>  <font color="#112266"><b>int</b></font> nInputs = nrhs;
<a name="32"><font color="#888888 "><i>   32   </i></font></a>  <font color="#117755"><i>/* Module initialization. */</i></font>
<a name="33"><font color="#888888 "><i>   33   </i></font></a>  <a href="ode78__initialize_c.html#fcn_ode78__initialize" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'fcn_ode78__initialize');" target="rtwreport_document_frame"><font color="#1122aa">ode78__initialize</font></a>(&amp;<a href="#var_emlrtContextGlobal" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'var_emlrtContextGlobal');" target="rtwreport_document_frame"><font color="#1122aa">emlrtContextGlobal</font></a>);
<a name="34"><font color="#888888 "><i>   34   </i></font></a>  <font color="#117755"><i>/* Check for proper number of arguments. */</i></font>
<a name="35"><font color="#888888 "><i>   35   </i></font></a>  <font color="#112266"><b>if</b></font> (nrhs != 3) <b>{</b>
<a name="36"><font color="#888888 "><i>   36   </i></font></a>    emlrtErrMsgIdAndTxt(<a href="#var_emlrtRootTLSGlobal" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'var_emlrtRootTLSGlobal');" target="rtwreport_document_frame"><font color="#1122aa">emlrtRootTLSGlobal</font></a>, <font color="#1122ff">&quot;EMLRT:runTime:WrongNumberOfInputs&quot;</font>, 5, mxINT32_CLASS, 3, mxCHAR_CLASS, 6, <font color="#1122ff">&quot;ode78_&quot;</font>);
<a name="37"><font color="#888888 "><i>   37   </i></font></a>  <b>}</b> <font color="#112266"><b>else</b></font> <font color="#112266"><b>if</b></font> (nlhs &gt; 3) <b>{</b>
<a name="38"><font color="#888888 "><i>   38   </i></font></a>    emlrtErrMsgIdAndTxt(<a href="#var_emlrtRootTLSGlobal" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'var_emlrtRootTLSGlobal');" target="rtwreport_document_frame"><font color="#1122aa">emlrtRootTLSGlobal</font></a>, <font color="#1122ff">&quot;EMLRT:runTime:TooManyOutputArguments&quot;</font>, 3, mxCHAR_CLASS, 6, <font color="#1122ff">&quot;ode78_&quot;</font>);
<a name="39"><font color="#888888 "><i>   39   </i></font></a>  <b>}</b>
<a name="40"><font color="#888888 "><i>   40   </i></font></a>  <font color="#117755"><i>/* Temporary copy for mex inputs. */</i></font>
<a name="41"><font color="#888888 "><i>   41   </i></font></a>  <font color="#112266"><b>for</b></font> (n = 0; n &lt; nInputs; ++n) <b>{</b>
<a name="42"><font color="#888888 "><i>   42   </i></font></a>    inputs[n] = (mxArray *)prhs[n];
<a name="43"><font color="#888888 "><i>   43   </i></font></a>  <b>}</b>
<a name="44"><font color="#888888 "><i>   44   </i></font></a>  <font color="#117755"><i>/* Call the function. */</i></font>
<a name="45"><font color="#888888 "><i>   45   </i></font></a>  <a href="ode78__api_c.html#fcn_ode78__api" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'fcn_ode78__api');" target="rtwreport_document_frame"><font color="#1122aa">ode78__api</font></a>((<font color="#112266"><b>const</b></font> mxArray**)inputs, (<font color="#112266"><b>const</b></font> mxArray**)outputs);
<a name="46"><font color="#888888 "><i>   46   </i></font></a>  <font color="#117755"><i>/* Copy over outputs to the caller. */</i></font>
<a name="47"><font color="#888888 "><i>   47   </i></font></a>  <font color="#112266"><b>for</b></font> (n = 0; n &lt; nOutputs; ++n) <b>{</b>
<a name="48"><font color="#888888 "><i>   48   </i></font></a>    plhs[n] = emlrtReturnArrayR2009a(outputs[n]);
<a name="49"><font color="#888888 "><i>   49   </i></font></a>  <b>}</b>
<a name="50"><font color="#888888 "><i>   50   </i></font></a>  <font color="#117755"><i>/* Module finalization. */</i></font>
<a name="51"><font color="#888888 "><i>   51   </i></font></a>  <a href="ode78__terminate_c.html#fcn_ode78__terminate" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'fcn_ode78__terminate');" target="rtwreport_document_frame"><font color="#1122aa">ode78__terminate</font></a>();
<a name="52"><font color="#888888 "><i>   52   </i></font></a><b>}</b>
<a name="53"><font color="#888888 "><i>   53   </i></font></a>
<a name="54"><font color="#888888 "><i>   54   </i></font></a><font color="#112266"><b>void</b></font> <a name="fcn_ode78__atexit_wrapper">ode78__atexit_wrapper</a>(<font color="#112266"><b>void</b></font>)
<a name="55"><font color="#888888 "><i>   55   </i></font></a><b>{</b>
<a name="56"><font color="#888888 "><i>   56   </i></font></a>   <a href="ode78__terminate_c.html#fcn_ode78__atexit" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'fcn_ode78__atexit');" target="rtwreport_document_frame"><font color="#1122aa">ode78__atexit</font></a>();
<a name="57"><font color="#888888 "><i>   57   </i></font></a><b>}</b>
<a name="58"><font color="#888888 "><i>   58   </i></font></a>
<a name="59"><font color="#888888 "><i>   59   </i></font></a><font color="#112266"><b>void</b></font> <a name="fcn_mexFunction">mexFunction</a>(<font color="#112266"><b>int</b></font> nlhs, mxArray *plhs[], <font color="#112266"><b>int</b></font> nrhs, <font color="#112266"><b>const</b></font> mxArray *prhs[])
<a name="60"><font color="#888888 "><i>   60   </i></font></a><b>{</b>
<a name="61"><font color="#888888 "><i>   61   </i></font></a>  <font color="#117755"><i>/* Initialize the memory manager. */</i></font>
<a name="62"><font color="#888888 "><i>   62   </i></font></a>  mexAtExit(<a href="#fcn_ode78__atexit_wrapper" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'fcn_ode78__atexit_wrapper');" target="rtwreport_document_frame"><font color="#1122aa">ode78__atexit_wrapper</font></a>);
<a name="63"><font color="#888888 "><i>   63   </i></font></a>  <font color="#117755"><i>/* Dispatch the entry-point. */</i></font>
<a name="64"><font color="#888888 "><i>   64   </i></font></a>  <a href="#fcn_ode78__mexFunction" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'fcn_ode78__mexFunction');" target="rtwreport_document_frame"><font color="#1122aa">ode78__mexFunction</font></a>(nlhs, plhs, nrhs, prhs);
<a name="65"><font color="#888888 "><i>   65   </i></font></a><b>}</b>
<a name="66"><font color="#888888 "><i>   66   </i></font></a>
<a name="67"><font color="#888888 "><i>   67   </i></font></a>mxArray *<a name="fcn_emlrtMexFcnProperties">emlrtMexFcnProperties</a>(<font color="#112266"><b>void</b></font>)
<a name="68"><font color="#888888 "><i>   68   </i></font></a><b>{</b>
<a name="69"><font color="#888888 "><i>   69   </i></font></a>  <font color="#112266"><b>const</b></font> <font color="#112266"><b>char</b></font> *mexProperties[] = <b>{</b>
<a name="70"><font color="#888888 "><i>   70   </i></font></a>    <font color="#1122ff">&quot;Version&quot;</font>,
<a name="71"><font color="#888888 "><i>   71   </i></font></a>    <font color="#1122ff">&quot;ResolvedFunctions&quot;</font>,
<a name="72"><font color="#888888 "><i>   72   </i></font></a>    <font color="#1122ff">&quot;EntryPoints&quot;</font><b>}</b>;
<a name="73"><font color="#888888 "><i>   73   </i></font></a>  <font color="#112266"><b>const</b></font> <font color="#112266"><b>char</b></font> *epProperties[] = <b>{</b>
<a name="74"><font color="#888888 "><i>   74   </i></font></a>    <font color="#1122ff">&quot;Name&quot;</font>,
<a name="75"><font color="#888888 "><i>   75   </i></font></a>    <font color="#1122ff">&quot;NumberOfInputs&quot;</font>,
<a name="76"><font color="#888888 "><i>   76   </i></font></a>    <font color="#1122ff">&quot;NumberOfOutputs&quot;</font>,
<a name="77"><font color="#888888 "><i>   77   </i></font></a>    <font color="#1122ff">&quot;ConstantInputs&quot;</font><b>}</b>;
<a name="78"><font color="#888888 "><i>   78   </i></font></a>  mxArray *xResult = mxCreateStructMatrix(1,1,3,mexProperties);
<a name="79"><font color="#888888 "><i>   79   </i></font></a>  mxArray *xEntryPoints = mxCreateStructMatrix(1,1,4,epProperties);
<a name="80"><font color="#888888 "><i>   80   </i></font></a>  mxArray *xInputs = NULL;
<a name="81"><font color="#888888 "><i>   81   </i></font></a>  xInputs = mxCreateLogicalMatrix(1, 3);
<a name="82"><font color="#888888 "><i>   82   </i></font></a>  mxSetFieldByNumber(xEntryPoints, 0, 0, mxCreateString(<font color="#1122ff">&quot;ode78_&quot;</font>));
<a name="83"><font color="#888888 "><i>   83   </i></font></a>  mxSetFieldByNumber(xEntryPoints, 0, 1, mxCreateDoubleScalar(3));
<a name="84"><font color="#888888 "><i>   84   </i></font></a>  mxSetFieldByNumber(xEntryPoints, 0, 2, mxCreateDoubleScalar(3));
<a name="85"><font color="#888888 "><i>   85   </i></font></a>  mxSetFieldByNumber(xEntryPoints, 0, 3, xInputs);
<a name="86"><font color="#888888 "><i>   86   </i></font></a>  mxSetFieldByNumber(xResult, 0, 0, mxCreateString(<font color="#1122ff">&quot;8.1.0.604 (R2013a)&quot;</font>));
<a name="87"><font color="#888888 "><i>   87   </i></font></a>  mxSetFieldByNumber(xResult, 0, 1, (mxArray*)<a href="ode78__api_c.html#fcn_emlrtMexFcnResolvedFunctionsInfo" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'fcn_emlrtMexFcnResolvedFunctionsInfo');" target="rtwreport_document_frame"><font color="#1122aa">emlrtMexFcnResolvedFunctionsInfo</font></a>());
<a name="88"><font color="#888888 "><i>   88   </i></font></a>  mxSetFieldByNumber(xResult, 0, 2, xEntryPoints);
<a name="89"><font color="#888888 "><i>   89   </i></font></a>
<a name="90"><font color="#888888 "><i>   90   </i></font></a>  <font color="#112266"><b>return</b></font> xResult;
<a name="91"><font color="#888888 "><i>   91   </i></font></a><b>}</b>
<a name="92"><font color="#888888 "><i>   92   </i></font></a><font color="#117755"><i>/* End of code generation (ode78__mex.c) */</i></font>
<a name="93"><font color="#888888 "><i>   93   </i></font></a></pre>
</td></tr></table>
</p>
</body>
</html>